package View;

import java.awt.Point;

import Model.Car;

import map.Map;

import jade.core.behaviours.OneShotBehaviour;

public class AddCar extends OneShotBehaviour {
	
	private static final long serialVersionUID = 7980360043640139545L;
	private Point start;
	private Point end;
	private Map map;

	public AddCar(Point start, Point end, Map map) {
		this.start = start;
		this.end = end;
		this.map = map;
	}

	@Override
	public void action() {
		map.addCar(new Car(start, end, map));
	}

}
